package com.cloudkinto.service.platform.vo.product;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class PlatformAddReq {
    @ApiModelProperty("店铺 不传 代表所有")
    private Long storeId;
    private String storeCode;
    @ApiModelProperty("管理番号")
    private String parentSku;
    @ApiModelProperty("平台sku")
    private String platformSku;
    @ApiModelProperty("库存预留占比 默认5%")
    private Double stockPercent;
    @TableField("是否库存联动 0否 1是")
    private Integer inventoryLink;

    private Integer productPresale;

    private String shippingDayId;

    @ApiModelProperty("系统sku")
    private List<SkuAddReq> systemSkus;

    public PlatformAddReq(Long storeId, String parentSku, String platformSku) {
        this.storeId = storeId;
        this.parentSku = parentSku;
        this.platformSku = platformSku;
    }

    public PlatformAddReq(Long storeId, String storeCode, String parentSku, String platformSku, Double stockPercent) {
        this.storeId = storeId;
        this.storeCode = storeCode;
        this.parentSku = parentSku;
        this.platformSku = platformSku;
        this.stockPercent = stockPercent;
    }
}
